package design.mode.command;

import java.util.LinkedList;
import java.util.Queue;

/**
 * /**
 *
 * @author ZhongMingde on 2021/11/20
 */

public class GameApplication {

  private static final int MAX_HANDLED_REQ_COUNT_PER_LOOP = 100;
  private Queue<Command> queue = new LinkedList<>();

//  public void mainLoop() {
//    while (true) {
//      List<Request> requests = new ArrayList<>();
//      Command command = null;
//      for (Request request : requests) {
//        if (event.equals(Event.GOT_DIAMOND)) {
//          command = new GotDiamondCommand(/*数据*/);
//        } else if (event.equals(Event.GOT_STAR)) {
//          command = new GotStartCommand(/*数据*/);
//        } else if (event.equals(Event.HIT_OBSTACLE)) {
//          command = new HitObstacleCommand(/*数据*/);
//        } else if (event.equals(Event.ARCHIVE)) {
//          command = new ArchiveCommand(/*数据*/);
//        }
//      }
//    }
//  }

}
